package com.hz.eduService.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import lombok.Data;

/**
 * 课程表
 * @TableName courses
 */
@TableName(value ="courses")
@Data
public class Course implements Serializable {
    /**
     * 主键，自增
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 课程编号，唯一性
     */
    @TableField(value = "course_code")
    private String courseCode;

    /**
     * 课程名称
     */
    @TableField(value = "course_name")
    private String courseName;

    /**
     * 课程简介
     */
    @TableField(value = "course_profile")
    private String courseProfile;

    /**
     * 教师 ID，外键关联 `user` 表主键 id
     */
    @TableField(value = "teacher_user_id")
    private Integer teacherUserId;

    /**
     * 教师真实姓名
     */
    @TableField(value = "teacher_real_name")
    private String teacherRealName;

    /**
     * 课时数量
     */
    @TableField(value = "section_count")
    private Integer sectionCount;

    /**
     * 课程时间
     */
    @TableField(value = "course_time")
    private String courseTime;

    /**
     * 最大选课学生数量
     */
    @TableField(value = "max_student_count")
    private Integer maxStudentCount;

    /**
     * 当前选课学生数量
     */
    @TableField(value = "current_student_count")
    private Integer currentStudentCount;

    /**
     * 教材名称
     */
    @TableField(value = "textbook")
    private String textbook;

    /**
     * 学分数量
     */
    @TableField(value = "credits_count")
    private Integer creditsCount;

    /**
     * 总分数
     */
    @TableField(value = "all_score")
    private Integer allScore;

    /**
     * 及格分数
     */
    @TableField(value = "pass_score")
    private Integer passScore;

    /**
     * 是否被删除（0：否；1：是，默认 0）
     */
    @TableField(value = "is_deleted")
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}